package com.zyj.repairs.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zyj.common.annotation.Excel;
import com.zyj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产维修对象 assets_repairs
 * 
 * @author zhuyujie
 * @date 2022-05-12
 */
public class AssetsRepairs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long repairsId;

    /** 维修编号 */
    @Excel(name = "维修编号")
    private String repairsNo;

    /** 维修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @Excel(name = "维修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairsTime;

    /** 报修人编号 */
    private Long userId;

    /** 报修人姓名 */
    @Excel(name = "报修人姓名")
    private String userName;

    /** 报修人位置 */
    private String userSeat;

    /** 报修人手机号 */
    @Excel(name = "报修人手机号")
    private String userMobile;

    /** 维修费用 */
    private BigDecimal repairsPrice;

    /** 维修状态 1:维修 2:报废 3:完结 */
    @Excel(name = "维修状态",dictType = "repairs_status")
    private String repairsStatus;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String assetsId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String assetsName;

    /** 设备SN号 */
    @Excel(name = "设备SN号")
    private String assetsSn;

    /** 维修说明 */
    private String repairsDesc;

    /** 照片附件 */
    private String repairsPic;

    /** 角色编号 */
    private Long roleId;

    /** 厂家编号 */
    private Long factoryId;

    /** 厂家名称 */
    private String factoryName;

    /** 维修人编号 */
    private Long repairsUserId;

    /** 维修人姓名 */
    @Excel(name = "维修人姓名")
    private String repairsUserName;

    /** 维修人答复 */
    private String repairsAnswer;

    /** 维修人答复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @Excel(name = "维修人答复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairsAnswerTime;

    public void setRepairsId(Long repairsId) 
    {
        this.repairsId = repairsId;
    }

    public Long getRepairsId() 
    {
        return repairsId;
    }
    public void setRepairsNo(String repairsNo) 
    {
        this.repairsNo = repairsNo;
    }

    public String getRepairsNo() 
    {
        return repairsNo;
    }
    public void setRepairsTime(Date repairsTime) 
    {
        this.repairsTime = repairsTime;
    }

    public Date getRepairsTime() 
    {
        return repairsTime;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserSeat(String userSeat) 
    {
        this.userSeat = userSeat;
    }

    public String getUserSeat() 
    {
        return userSeat;
    }
    public void setUserMobile(String userMobile) 
    {
        this.userMobile = userMobile;
    }

    public String getUserMobile() 
    {
        return userMobile;
    }
    public void setRepairsPrice(BigDecimal repairsPrice) 
    {
        this.repairsPrice = repairsPrice;
    }

    public BigDecimal getRepairsPrice() 
    {
        return repairsPrice;
    }
    public void setRepairsStatus(String repairsStatus) 
    {
        this.repairsStatus = repairsStatus;
    }

    public String getRepairsStatus() 
    {
        return repairsStatus;
    }
    public void setAssetsId(String assetsId) 
    {
        this.assetsId = assetsId;
    }

    public String getAssetsId() 
    {
        return assetsId;
    }
    public void setAssetsName(String assetsName) 
    {
        this.assetsName = assetsName;
    }

    public String getAssetsName() 
    {
        return assetsName;
    }
    public void setAssetsSn(String assetsSn) 
    {
        this.assetsSn = assetsSn;
    }

    public String getAssetsSn() 
    {
        return assetsSn;
    }
    public void setRepairsDesc(String repairsDesc) 
    {
        this.repairsDesc = repairsDesc;
    }

    public String getRepairsDesc() 
    {
        return repairsDesc;
    }
    public void setRepairsPic(String repairsPic) 
    {
        this.repairsPic = repairsPic;
    }

    public String getRepairsPic() 
    {
        return repairsPic;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setRepairsUserId(Long repairsUserId) 
    {
        this.repairsUserId = repairsUserId;
    }

    public Long getRepairsUserId() 
    {
        return repairsUserId;
    }
    public void setRepairsUserName(String repairsUserName) 
    {
        this.repairsUserName = repairsUserName;
    }

    public String getRepairsUserName() 
    {
        return repairsUserName;
    }
    public void setRepairsAnswer(String repairsAnswer) 
    {
        this.repairsAnswer = repairsAnswer;
    }

    public String getRepairsAnswer() 
    {
        return repairsAnswer;
    }
    public void setRepairsAnswerTime(Date repairsAnswerTime) 
    {
        this.repairsAnswerTime = repairsAnswerTime;
    }

    public Date getRepairsAnswerTime() 
    {
        return repairsAnswerTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairsId", getRepairsId())
            .append("repairsNo", getRepairsNo())
            .append("repairsTime", getRepairsTime())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("userSeat", getUserSeat())
            .append("userMobile", getUserMobile())
            .append("repairsPrice", getRepairsPrice())
            .append("repairsStatus", getRepairsStatus())
            .append("assetsId", getAssetsId())
            .append("assetsName", getAssetsName())
            .append("assetsSn", getAssetsSn())
            .append("repairsDesc", getRepairsDesc())
            .append("repairsPic", getRepairsPic())
            .append("roleId", getRoleId())
            .append("factoryId", getFactoryId())
            .append("factoryName", getFactoryName())
            .append("repairsUserId", getRepairsUserId())
            .append("repairsUserName", getRepairsUserName())
            .append("repairsAnswer", getRepairsAnswer())
            .append("repairsAnswerTime", getRepairsAnswerTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
